﻿using GCFramework.Singleton;
using Mono.Cecil;
using UnityEngine;

namespace Core.Manager
{
    public class ResManager : SingletonMono<ResManager>
    {
        public T LoadRes<T>(string path) where T : Object
        {
            T res = Resources.Load<T>(path);
            if (res == null)
            {
                Debug.LogError($"资源加载失败！{path}");
            }
            return res;
        }
    }
}